package com.woniuxy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.context.annotation.PropertySource;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

@SpringBootApplication

public class Day11SpringStartApplication {

    public static void main(String[] args) throws ParseException {
        SpringApplication.run(Day11SpringStartApplication.class, args);
        String s = new String("2022-11-12 10:12:12");
        DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        Date parse = dateFormat.parse(s);
        System.out.println(parse);
    }

}
